package org.shj.tdpl.example.entity;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @author Shen Huang Jian
 * @date 2019-08-27 18:26
 */
@Data
@MappedSuperclass
public class BaseEntity {

    @Id
    protected String id;

    @Column
    protected String createdBy;

    @Column
    @Temporal(TemporalType.TIMESTAMP)
    protected Date createdDt;

    @Column
    protected String updatedBy;

    @Column
    @Temporal(TemporalType.TIMESTAMP)
    protected Date updatedDt;

}
